# coding: utf-8
import subprocess
import time


class Dial:
    def __init__(self):
        self.ADSL_BASH = "adsl-stop; adsl-start"

    def run(self):
        while True:
            (status, output) = subprocess.getstatusoutput(self.ADSL_BASH)
            print(status)
            print(output)
            time.sleep(3)


def main():
    dial = Dial()
    dial.run()


if __name__ == '__main__':
    main()
